package com.xmall.msg.entity.order;

import com.xmall.msg.base.BaseMsg;
import com.xmall.msg.base.MsgSourceType;
import lombok.Data;

import java.io.Serializable;

@Data
public class OrderCancelCheckMsg extends BaseMsg implements Serializable {

    /**
     * 订单ID
     */
    private Long orderId;

    public OrderCancelCheckMsg build(MsgSourceType msgSourceType, String exchange, String routingKey) {
        super.build(msgSourceType, exchange, routingKey);
        return this;
    }

    private void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public OrderCancelCheckMsg orderId(Long orderId) {
        this.orderId = orderId;
        return this;
    }

}
